package com.service.repayimpl;

import com.dao.RepayMapper;
import com.model.Repay;
import com.service.RepayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * 编写者：梁颖
 * 编写时间：2019-5-29
 * 类模块描述：查询及相关增删改
 */
@Service
public class RepayServiceImpl implements RepayService {
    @Autowired
    private RepayMapper repayMapper;
    @Override
    public Repay selectByPrimaryKey(int reid) {
        System.out.println("输入的参数为："+reid);
        return repayMapper.selectByPrimaryKey(reid);
    }

    @Override
    public List<Repay> getPayments() {
        return repayMapper.getPayments();
    }

    @Override
    public List<Repay> getAllRe() {
        return repayMapper.getAllRe();
    }

    @Override
    public int delRe(Integer reid) {
        return repayMapper.delRe(reid);
    }

    @Override
    public int insertRe(Repay repaymodel) {
        return repayMapper.insertRe(repaymodel);
    }
}
